﻿<controls:MetroWindow   x:Class="Ags.MonsterTools.MainWindow"
                        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                        xmlns:prism="http://www.codeplex.com/prism"
                        xmlns:controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                        xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                        xmlns:behaviours="http://metro.mahapps.com/winfx/xaml/shared"
                        Title="MonsterTools" 
                        Height="480" 
                        Width="640" 
                        Icon="Images/ghost.png" 
                        ResizeMode="CanResizeWithGrip"
                        SizeToContent="Manual"
                        prism:RegionManager.RegionName="WindowRegion"
                        StateChanged="MainWindow_OnStateChanged">
    <i:Interaction.Behaviors>
        <behaviours:BorderlessWindowBehavior AllowsTransparency="False"
                                             EnableDWMDropShadow="True" />
    </i:Interaction.Behaviors>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="25"></RowDefinition>
        </Grid.RowDefinitions>
        <!--Main menu section-->
        <Menu Name="FileMenu" Grid.Row="0">
            <MenuItem Header="File">
                <MenuItem Header="_Close" Command="{Binding CloseCommand}"></MenuItem>
            </MenuItem>
            <MenuItem Header="Help">
                <MenuItem Header="_About..." Command="{Binding ShowAboutCommand}"></MenuItem>
            </MenuItem>
        </Menu>
        <!-- Content region -->
        <controls:MetroAnimatedTabControl Grid.Row="1" prism:RegionManager.RegionName="Content">
            <TabControl.ItemContainerStyle>
                <Style TargetType="{x:Type TabItem}">
                    <Setter Property="Header" Value="{Binding HeaderContent}" />
                </Style>
            </TabControl.ItemContainerStyle>
        </controls:MetroAnimatedTabControl>
        <controls:TransitioningContentControl Grid.Row="2" prism:RegionManager.RegionName="Statusbar"></controls:TransitioningContentControl>
    </Grid>
</controls:MetroWindow>
